import request from "./request/requestToken";
import { RootObject } from "./types/rootObject";

export enum dataDictionaryMode {
  场景类型 = "DC00001",
  商户状态 = "DC00002",
  支付方式 = "DC00003",
  销售类型 = "DC00004",
  采集协议 = "DC00005",
  协议类型 = "DC00005",
  数据格式 = "DC00007",
  数字格式 = "DC00008",
  读写方式 = "DC00009",
}
export interface DataDictionaryItem {
  name: string;
  value: string;
}
export const apiGetDataFormatList = (code: dataDictionaryMode) =>
  request<RootObject<DataDictionaryItem[]>>({
    method: "GET",
    url: `/sys-dict/list/${code}`,
  });
